package com.infore.dataAudit.enums;

/**
 * 数据审核状态
 * @author cys
 *
 */
public enum AirAuditUsers {
    YW("2d316d0e495849ee97d05dfd2cca94b1", "通州运维人员"),                  //有效
    XZ("2d316d0e495849ee97d05dfd2cca9411", "通州乡镇"),          //
    SQ("2d316d0e495849ee97d05dfd2cca9421", "通州市区");  
    
    private  final String code;
    private  final String reason;

    private AirAuditUsers(String statusCode, String reasonPhrase) {
        this.code = statusCode;
        this.reason = reasonPhrase;
    }

    public String getStatusCode() {
        return this.code;
    }

    public String getReasonPhrase() {
        return this.reason;
    }
    
  //根据code获取审批状态文本
    public static String getReasonByCode(String code){
        if(null == code){
            return "";
        }
        for(AirAuditUsers temp:AirAuditUsers.values()){
            if(temp.getStatusCode().equals(code)){
                return temp.getReasonPhrase();
            }
        }
        return "";
    }
}
